/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.web;

import javax.servlet.http.HttpServletRequest;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.sys.utils.UserUtils;
import com.thinkgem.jeesite.modules.ta.util.GetWebServicePathUtil;


/**
 * 培训审批信息查看Controller
 * @author 刘雨轩
 * @version 2017-05-26
 */
@Controller
@RequestMapping(value = "${adminPath}/ta/peiXunShenPiXinXiChaKan")
public class PeiXunShenPiXinXiChaKanController extends BaseController {

	@RequiresPermissions("ta:peiXunShenPiXinXiChaKanController:view")
	@RequestMapping(value = {"list", ""})
	public String list(HttpServletRequest request){
		User user = UserUtils.getUser();
		if(user == null){
			return "modules/sys/sysLogin";
		}
		String userId = user.getNo();
		String fName = "peixunshenpixinxichakan";
		String path = GetWebServicePathUtil.getPath(userId, fName,request);
		System.out.println(path);
		return "redirect:"+path;
	}

}